data Property (System) |
Returns a global array that can be used by the application developers to store data, which can be shared across applications.
Syntax
HTML |
oData = system.data |
Parameters
Parameter |
Description |
---|---|
oData |
Variant that contains the data stored by applications, which can be shared across applications in the Process Platform Ajax Toolkit framework. |
Remarks
The data property can be used by the developer to store objects that are required across applications. The following is a sample of code in which the Employee ID of the Northwind database is stored from the Northwind Demo Application:
Scripting |
//Create a convention for northwind database, to identify it uniquely system.data.northwindData = new Object(); //Set the Employee ID and name information in the data property system.data.northwindData.EmployeeID = 1; system.data.northwindData.EmployeeName = "Nancy Davolio"; //Access the data stored from some other application application.notify(system.data.northwindData.EmployeeID); |
Note: Strict naming conventions should be followed while storing data in the data property of the system component. This is because the data stored here will be accessed by all the applications. As a convention, prefixing the variable names with the ISV or Product Name could be followed.